<template>
	<ul>
		<li v-for="(item, index) in dataList" :key="index">
			<span>{{ item.administrationName }}</span>
		</li>
	</ul>
</template>

<script setup lang="ts">
import apiMod from '@/apiMod/index'
type Props = {
	administrationPid?: string | number
}
const props = withDefaults(defineProps<Props>(), {
	administrationPid: -1,
})

const dataList = ref([])
const getInitData = () => {
	apiMod
		.admin_sysadministration_view({
			administrationPid: props.administrationPid,
		})
		.then((res) => {
			const data = res.data
			dataList.value = data.records
		})
}

onMounted(() => {
	getInitData()
})
</script>

<style scoped></style>
